﻿@using PagedList;
@using PagedList.Mvc;

@model IPagedList<BeautyTech.WebSite.Models.Blogs.BlogPostListModel>

@{
    ViewBag.Title = "Beauty Tech - Blog";
    //Layout = "~/Views/Blog/_BlogLayout.cshtml";
}


@foreach (var item in Model) {
    <article id="post-@item.Id">
        <header>
            <time>@item.CreatedOn.ToString("D")</time>
            <h4>@Html.ActionLink(item.Title.ToUpper(), "Details", "Blog", new{ id=item.Id }, null)</h4>
        </header>
        <div>@item.Introduction</div>
        <footer>
            <p>tags :</p>
            @Html.ActionLink("Lire la suite...", "Details", "Blog", new { id = item.Id }, new { @class="btn btn-inverse btn-small"})
        </footer>
    </article>
}

@Html.PagedListPager(Model, page => Url.Action("Index", new { page }), PagedListRenderOptions.ClassicPlusFirstAndLast)

